<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="XSD">
      <schema location="../xsd/UBDepartment_Info_table.xsd"/>
      <rootElement name="XxsaisDeptInfoCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/UBDepartment_Info"/>
    </source>
  </mapSources>
  <mapTargets>
    <target type="XSD">
      <schema location="http://mokala.ub.bw:7001/PSIGW/PeopleSoftServiceListeningConnector/UB_DEPARTMENT.V1.xsd"/>
      <rootElement name="UB_DEPARTMENT" namespace="http://xmlns.oracle.com/Enterprise/CSM/schemas/UB_DEPARTMENT.V1"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.2.0(build 091103.1205.1216) AT [THU JUN 13 08:27:33 CAT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:xpath20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:UB_DEPARTMENT_PART.V1="http://xmlns.oracle.com/Enterprise/CSM/schemas/UB_DEPARTMENT_PART.V1"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:ns1="http://xmlns.oracle.com/Enterprise/CSM/schemas/UB_DEPARTMENT.V1"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/UBDepartment_Info"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl xsd ns0 UB_DEPARTMENT_PART.V1 ns1 xpath20 bpws mhdr oraext dvm hwf med ids xdk xref ora socket ldap">
  <xsl:template match="/">
    <ns1:UB_DEPARTMENT>
      <ns1:UB_DEPARTMENT_PART>
        <UB_DEPARTMENT_PART.V1:DEPT_TBL>
          <xsl:attribute name="class">
            <xsl:text disable-output-escaping="no">R</xsl:text>
          </xsl:attribute>
          <UB_DEPARTMENT_PART.V1:SETID>
            <xsl:text disable-output-escaping="no">U0001</xsl:text>
          </UB_DEPARTMENT_PART.V1:SETID>
          <UB_DEPARTMENT_PART.V1:DEPTID>
            <xsl:value-of select="/ns0:XxsaisDeptInfoCollection/ns0:XxsaisDeptInfo/ns0:departmentCode"/>
          </UB_DEPARTMENT_PART.V1:DEPTID>
          <UB_DEPARTMENT_PART.V1:EFFDT>
            <xsl:value-of select='xpath20:format-dateTime(/ns0:XxsaisDeptInfoCollection/ns0:XxsaisDeptInfo/ns0:effectiveDate,"[Y0001]-[M01]-[D01]")'/>
          </UB_DEPARTMENT_PART.V1:EFFDT>
          <UB_DEPARTMENT_PART.V1:EFF_STATUS>
            <xsl:value-of select="/ns0:XxsaisDeptInfoCollection/ns0:XxsaisDeptInfo/ns0:status"/>
          </UB_DEPARTMENT_PART.V1:EFF_STATUS>
          <UB_DEPARTMENT_PART.V1:DESCR>
            <xsl:value-of select="/ns0:XxsaisDeptInfoCollection/ns0:XxsaisDeptInfo/ns0:description"/>
          </UB_DEPARTMENT_PART.V1:DESCR>
          <UB_DEPARTMENT_PART.V1:LOCATION>
            <xsl:value-of select="/ns0:XxsaisDeptInfoCollection/ns0:XxsaisDeptInfo/ns0:location"/>
          </UB_DEPARTMENT_PART.V1:LOCATION>
          <UB_DEPARTMENT_PART.V1:BUDGET_LVL>
            <xsl:value-of select="/ns0:XxsaisDeptInfoCollection/ns0:XxsaisDeptInfo/ns0:deptGroup"/>
          </UB_DEPARTMENT_PART.V1:BUDGET_LVL>
        </UB_DEPARTMENT_PART.V1:DEPT_TBL>
      </ns1:UB_DEPARTMENT_PART>
    </ns1:UB_DEPARTMENT>
  </xsl:template>
</xsl:stylesheet>
